<template>
 <el-container style="height: 800px; border: 1px solid #eee">
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu :default-openeds="['1', '3']" @select="handleSelect">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>导航一</template>
        <el-menu-item-group>
          <template slot="title">分组一</template>
          <el-menu-item index="1-1" >查询全部</el-menu-item>
          <!-- <el-menu-item index="1-2">选项2</el-menu-item> -->
        </el-menu-item-group>
     
        
      </el-submenu>
    </el-menu>
  </el-aside>
  
  <el-container>
    <router-view/>
  </el-container>
</el-container>



</template>

<script>
  export default {
    data() {
      
      const item = {
        date: '',
        name: '',
        address: '',
      };
      return {
        // tableData: Array(20).fill(item),
        tableData: [],

        inname: '',
        inoaid: '',
        incontent: '',
        innote: '',

      }
    },
    methods:{
      handleSelect(key, keyPath) {
        console.log(key, keyPath);
        if(key=="1-1"){
          this.$router.push("/select")
        }
 
    }
    
  },
}
</script>
<style>
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>
